package com.chenjt.netty.fourteen_stickyAndUnpackPackage.stickyPackageDemo.client;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;

/**
 * 注释：
 *
 * @author chenjt
 * @date 2024/9/6 11:08
 */
public class MyClientInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        ChannelPipeline pipeline = ch.pipeline();


        // 入站处理器
        pipeline.addLast(new MyClientHandler());
    }
}
